home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7944 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: u-psud.fr!usenet
  2. From: Laurent Pointal <pointal@lure.u-psud.fr>
  3. Newsgroups: comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.programming,comp.windows.ms.programmer
  4. Subject: Re: How to access miliseconds?
  5. Date: Thu, 15 Feb 1996 13:54:18 +0100
  6. Organization: Universite Paris-Sud, France.
  7. Message-ID: <31232CFA.6007@lure.u-psud.fr>
  8. References: <4fqh79$j4j@usenet.rpi.edu> <3121E861.3EA8@tid.es>
  9. NNTP-Posting-Host: cactus.lure.u-psud.fr
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  14.  
  15. Mariano wrote:
  16.  > 
  17.  > You can use :
  18.  > 
  19.  >         UINT SetTimer (hwnd, idTimer,uTimeOut, tmprc);
  20.  > 
  21.  >         hwnd handle to the window associated with the timer (and with tmprc);
  22.  >         idTimer a nonzero timer identifier.
  23.  >         uTimeOut in mseconds,
  24.  >         tmprc is a pointer to a function to handle the timeouts of the timer.
  25.  > 
  26.  > 
  27.  >         BOOL KillTimer (hwnd, idTimer); when you finish to use the Timer.
  28.  > 
  29.  > --
  30.  > Mariano Garcia Ruiz (mgr@tid.es)
  31.  
  32. If you get a true millisecond timing resolution with SetTimer, please, email me how you have done 
  33. such a miracle :-).
  34. Honnestly, SetTimer is right to maintain a clock displaying or things like that, but it has not a 
  35. millisecond precision.
  36.  
  37. Laurent.
  38.  
  39. ---------------------------------------------------
  40. Laurent POINTAL
  41. CNRS - LURE
  42. email: pointal@lure.u-psud.fr   (work)
  43.        lpointal@planete.net     (home)
  44.